package com.yf.notify.modules.notify.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.LinkedHashMap;
import java.util.List;

/**
 * 消息任务
 */
@Data
@ApiModel(value="消息发送请求类", description="消息发送请求类")
public class MsgSendDTO {

    @ApiModelProperty(value = "消息模板", required=true)
    private String tmplId;

    @ApiModelProperty(value = "接收对象")
    private List<MsgReceiverDTO> tos;

    @ApiModelProperty(value = "消息标题")
    private String subject;

    @ApiModelProperty(value = "消息内容")
    private String body;

    @ApiModelProperty(value = "消息参数")
    private LinkedHashMap<String,String> params;

    @ApiModelProperty(value = "链接类型")
    private String linkType;

    @ApiModelProperty(value = "链接ID")
    private String linkId;

    @ApiModelProperty(value = "站内信")
    private Boolean useIm;

    @ApiModelProperty(value = "短信")
    private Boolean useSms;

    @ApiModelProperty(value = "邮件")
    private Boolean useEmail;
}
